package cn.gene.timeyan.pojo.admin.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 广告处理*
 *
 * @author LWG
 * @date 2022/7/21 14:24
 * @since 1.0.0@gene.cn
 */
@ApiModel(value="广告更新DTO")
@Data
public class AdvertiseUpdateDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "广告id")
    private Long adId;

    @ApiModelProperty(value = "广告商",example = "时光源")
    private String advertiser;

    @ApiModelProperty(value = "广告类别",example = "游戏")
    private String adShowWay;

    @ApiModelProperty(value = "广告内容",example = "一起游戏吧!")
    private String content;

    @ApiModelProperty(value = "广告链接",example = "https://www.shiguangyuan.com")
    private String link;

    @ApiModelProperty(value = "发布时间",example = "2023-07-15 00:00:00")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publicTime;

    @ApiModelProperty(value = "状态,0=未发布，1=已发布",example = "0")
    private Integer state;

    @ApiModelProperty(value = "图片路径")
    private List<String> imgUrl;
}
